#include "app_message.h"
#include "log/log.h"

int main(int argc, char const *argv[])
{
    char *messaage = "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";
    char chars[100] = {0};
    int chars_len = app_message_jsonToChars(messaage, chars, sizeof(chars));
    log_debug("chars_len:%d, chars:%*s", chars_len, chars_len, chars);

    char *json = app_message_charsToJson(chars, chars_len);
    log_debug("json:%s", json);

    return 0;
}
